package com.sgcc.pda.mdrh.task.safe.entity;

import com.sgcc.pda.sdk.entity.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 描述：工作票服务器返回结果
 * 作者：jianiuqi 2020-09-17 15:34
 */
public class TicketFinishVerify extends BaseEntity implements Serializable {

    private VerifyDetail DTS;

    public static class VerifyDetail implements Serializable {

        //工作票Id
        private String recordId;

        //工作票号
        private String wtNo;

        //工作票状态
        private String wtState;

        //工作票是否间断
        private String wtStopType;

        //关联工单数量
        private int connectWorkCount;

        //结束工单数量
        private int closedWorkCount;

        public String getRecordId() {
            return recordId;
        }

        public void setRecordId(String recordId) {
            this.recordId = recordId;
        }

        public String getWtNo() {
            return wtNo;
        }

        public void setWtNo(String wtNo) {
            this.wtNo = wtNo;
        }

        public String getWtState() {
            return wtState;
        }

        public void setWtState(String wtState) {
            this.wtState = wtState;
        }

        public String getWtStopType() {
            return wtStopType;
        }

        public void setWtStopType(String wtStopType) {
            this.wtStopType = wtStopType;
        }

        public int getConnectWorkCount() {
            return connectWorkCount;
        }

        public void setConnectWorkCount(int connectWorkCount) {
            this.connectWorkCount = connectWorkCount;
        }

        public int getClosedWorkCount() {
            return closedWorkCount;
        }

        public void setClosedWorkCount(int closedWorkCount) {
            this.closedWorkCount = closedWorkCount;
        }
    }

    public VerifyDetail getDTS() {
        return DTS;
    }

    public void setDTS(VerifyDetail DTS) {
        this.DTS = DTS;
    }

    public boolean isSuccess() {
        if ("1".equals(RT_F)) {
            return true;
        }
        return false;
    }
}
